var Edit = function () {

    return {
        
        //main function to initiate the module
        init: function () {
        
            var editor = $j('.wysihtml5').data('wysihtml5');
            
            if (!editor) {
        
                $j('.wysihtml5').wysihtml5({
                    'font-styles': false, 
                    html: true, 
                    image: false,
                    cleanUp: true,
                    stylesheets: ["./../../content/plugins/bootstrap/css/skin/cosmo/bootstrap.min.css"]
                });
            }
        
            $j('input:checkbox').each(function() {
                if ($j(this).is(':visible'))
                    $j(this).prettyCheckable();
            });
        }
    }

}();